/**
 * 
 */
package co.edu.udem.service.login;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.edu.udem.dao.LoginDao;
import co.edu.udem.domain.User;


/**
 * @since 18/07/2012
 */
@Service("loginService")
public class LoginService {

  @Autowired
  private LoginDao loginDao;

  public User createSession(String userCode, String password, int userType) {
    return loginDao.createSession(userCode, password, userType);
  }
  
  public User validateSession(String userCode, String password, int userType) {
    return loginDao.validateSession(userCode, password, userType);
  }
}
